﻿
@{
    ViewBag.Title = "HiddenTroubleAdd";
    Layout = "~/Views/Shared/_LayoutMain.cshtml";
}
@section css {
    <link href="~/Assets/css/lib/bootstrap-select.css" rel="stylesheet" />
    <link href="~/Assets/css/lib/bootstrap-datetimepicker.min.css" rel="stylesheet" />
    <link href="~/Assets/css/lib/fileinput.css" rel="stylesheet" />
    <link href="~/Assets/js/jqueryui.css" rel="stylesheet" />
    <style>
        th {
            text-align: center;
            font-weight: bold;
        }

        td {
            text-align: center;
            vertical-align: middle;
        }
    </style>
}
<div class="page-content" ng-cloak ng-controller="HiddenTroubleController" ng-init="
     page='@(Request.QueryString["page"].IsEmpty() ? "1" : Request.QueryString["page"])';
     FormId='@(Request.QueryString["FormId"].IsEmpty() ? "0" : Request.QueryString["FormId"])';
     AddModel.ReviewTime = '@DateTime.Now.ToString("yyyy-MM-dd")';
     GetHiddenTroubleEditDetail(FormId);
     ">
    <div class="load" ng-show="DataLoading">
        <div class="loader">
            <svg version="1.1" id="loader-1" x="0px" y="0px" width="100px" height="100px" viewBox="0 0 50 50" style="enable-background:new 0 0 50 50;" xml:space="preserve">
            <path fill="#000" d="M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z">
            <animateTransform attributeType="xml" attributeName="transform" type="rotate" from="0 25 25" to="360 25 25" dur="0.6s" repeatCount="indefinite" />

			</path>
		</svg>
            <div class="load-msg" ng-bind="LoadingMsg"></div>
        </div>
    </div>
    <div class="page-heading">
        <h1>问题复查</h1>
        <div class="options">
            <div class="btn-toolbar">

            </div>
        </div>
    </div>
    <ol class="breadcrumb">
        <li><a>主页</a></li>
        <li><a>问题治理</a></li>
        <li class="active"><a>问题复查</a></li>
    </ol>
    <form id="HiddenTroubleForm" class="form-horizontal row-border">
        <div class="container-fluid">
            <div class="row">
                <div class="col-md-12">
                    <div class="panel panel-sky">
                        <div class="panel-heading"><h2>整改对比</h2></div>
                        <div class="panel-body">
                            <div class="col-md-6" style="border-right:1px solid rgb(240,243,245);">
                                <p>整改前</p>
                                <div class="col-md-12">
                                    <a data-toggle="modal" href="#imageModal" ng-click="ShowImage(x.FilePath);" ng-repeat="x in HiddenTroubleEditModel.FileList"><img ng-src="{{x.FilePath}}" class="img-rounded" alt="{{x.FileName}}" width="200" style="margin: 5px 5px 10px;"></a>
                                </div>
                                <table class="table table-striped table-bordered table-hover">
                                    <thead>
                                        <tr>
                                            <th style="width:5%">序号</th>
                                            <th style="width:30%">文件名称</th>
                                            <th style="width:10%">文件大小(kb)</th>
                                            <th style="width:10%">操作</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <tr ng-show="HiddenTroubleEditModel.FileList.length==0">
                                            <td colspan="4" style="text-align:center;vertical-align:middle;line-height:30px;">没有数据</td>
                                        </tr>
                                        <tr ng-repeat="x in HiddenTroubleEditModel.FileList">
                                            <td ng-bind="$index+1"></td>
                                            <td ng-bind="x.FileName"></td>
                                            <td ng-bind="x.FileSize"></td>
                                            <td>
                                                <a href="../Download/DownloadFile?FileId={{x.FileId}}" class="btn btn-success btn-xs btn-label"><i class="fa fa-download"></i>下载</a>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>

                            </div>
                            <div class="col-md-6">
                                <p>整改后</p>
                                <div class="col-md-12">
                                    <a data-toggle="modal" href="#imageModal" ng-click="ShowImage(x.FilePath);" ng-repeat="x in RetFileList"><img ng-src="{{x.FilePath}}" class="img-rounded" alt="{{x.FileName}}" width="200" style="margin: 5px 5px 10px;"></a>
                                </div>
                              
                                <table class="table table-striped table-bordered table-hover">
                                    <thead>
                                        <tr>
                                            <th style="width:5%">序号</th>
                                            <th style="width:30%">文件名称</th>
                                            <th style="width:10%">文件大小(kb)</th>
                                            <th style="width:10%">操作</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <tr ng-show="RetFileList.length==0">
                                            <td colspan="4" style="text-align:center;vertical-align:middle;line-height:30px;">没有数据</td>
                                        </tr>
                                        <tr ng-repeat="x in RetFileList">
                                            <td ng-bind="$index+1"></td>
                                            <td ng-bind="x.FileName"></td>
                                            <td ng-bind="x.FileSize"></td>
                                            <td>
                                                <a href="../Download/DownloadFile?FileId={{x.FileId}}" class="btn btn-success btn-xs btn-label"><i class="fa fa-download"></i>下载</a>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-md-12">
                    <div class="panel panel-sky">
                        <div class="panel-heading"><h2>问题复查</h2></div>
                        <div class="panel-body">
                            <div class="form-group">
                                <label class="col-sm-1 control-label">复查时间：</label>
                                <div class="col-sm-2">
                                    <datepicker id="OperateTime" option="datetimeOption" format="L" ng-model="AddModel.ReviewTime"></datepicker>
                                </div>
                                <label class="col-sm-1 control-label">复查人员：</label>
                                <div class="col-sm-2">
                                    <input type="text" ng-model="User.UserName" class="form-control" readonly />
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-1 control-label">复查情况：</label>
                                <div class="col-sm-8">
                                    <textarea class="form-control autosize" ng-model="AddModel.Description" style="overflow: hidden; overflow-wrap: break-word; resize: horizontal; height: 80px;"></textarea>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label">上传文件:</label>
                                <div class="col-lg-8">
                                    <input type="file" class="form-control" style="border:none;" id="ImageFile" multiple>
                                </div>
                            </div>
                        </div>
                        <div class="panel-footer">
                            <div class="form-group">
                                <div class="col-lg-1">  </div>
                                <div class="col-lg-1">
                                    <button class="btn-primary btn" ng-click="AddReviewRecord(FormId,'true',AddModel,page);">通过</button>
                                </div>
                                <div class="col-lg-1">
                                    <button class="btn-warning btn" ng-click="AddReviewRecord(FormId,'false',AddModel,page);">驳回</button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-md-12">
                    <div class="form-group">
                        <div class="col-sm-6 col-sm-offset-2">

                            <a href="HiddenTroubleRectification?page={{page}}" class="btn-default btn">返回</a>
                        </div>

                    </div>
                </div>
            </div>
        </div>
    </form>
    <div class="modal fade" id="imageModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog" style="min-width:985px;">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                    <h2 class="modal-title">图片预览</h2>
                </div>
                <div class="modal-body">
                    <img ng-src="{{ImagePath}}" width="800"/>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                </div>
            </div>
        </div><!-- /.modal-dialog -->
    </div>

</div>


@section Js{
    <script src="~/Assets/js/pg/HiddenTrouble.js"></script>
    <script src="~/Assets/js/libs/moment.min.js"></script>
    <script src="~/Assets/js/libs/locales/date/zh-cn.js"></script>
    <script src="~/Assets/js/libs/bootstrap-datetimepicker.min.js"></script>
    <script src="~/Assets/js/libs/angularjs-datepicker.js"></script>
    <script src="~/Assets/js/libs/fileinput.js"></script>
    <script src="~/Assets/js/libs/zh.js"></script>
    <script>
        $('#docfiles').fileinput({
            language: 'zh'
        });

    </script>
}